home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / dev / misc / gms_dev.lha / GMSDev / Includes / system / misc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-31  |  2.4 KB  |  93 lines

  1. #ifndef SYSTEM_MISC_H
  2. #define SYSTEM_MISC_H TRUE
  3.  
  4. /*
  5. **  $VER: misc.h V2.1
  6. **
  7. **  (C) Copyright 1996-1998 DreamWorld Productions.
  8. **      All Rights Reserved.
  9. **
  10. */
  11.  
  12. #ifndef DPKERNEL_H
  13. #include <dpkernel/dpkernel.h>
  14. #endif
  15.  
  16. #ifndef FILES_FILES_H
  17. #include <files/files.h>
  18. #endif
  19.  
  20. /****************************************************************************
  21. ** Object Referencing structure.
  22. */
  23.  
  24. #define VER_REFERENCE  2
  25. #define TAGS_REFERENCE ((ID_SPCTAGS<<16)|ID_REFERENCE)
  26.  
  27. struct Reference {
  28.   struct Head Head;            /* [00] Standard header */
  29.   struct Reference *Next;      /* [12] Next reference */
  30.   struct Reference *Prev;      /* [16] Previous reference */
  31.   WORD   ClassID;              /* [20] ID of the class */
  32.   WORD   prvPad;               /* [22] */
  33.   BYTE   *ClassName;           /* [24] Name of the class */
  34.   BYTE   *ModName;             /* [28] Name of the module containing the object */
  35.   struct Config   *prvConfig;  /* [32] Private */
  36.   WORD   ModNumber;            /* [36] Module ID number */
  37.   BYTE   *Extension;           /* [38] File extension string */
  38.   struct Module   *Module;     /* [42] Set once the Module has been Init()ialised */
  39.   struct DPKTask  *Task;       /* [46] The Task that Activate()ed the reference */
  40.   struct FileName *ConfigFile; /* [50] Parameter source */
  41.   BYTE   *FileHead;            /* [54] String to match the file header */
  42. };
  43.  
  44. #define REFA_ClassID    (TWORD|20)
  45. #define REFA_ClassName  (TAPTR|24)
  46. #define REFA_ModName    (TAPTR|28)
  47. #define REFA_ModNumber  (TWORD|36)
  48. #define REFA_Extension  (TAPTR|38)
  49. #define REFA_ConfigFile (TAPTR|50)
  50. #define REFA_FileHead   (TAPTR|54)
  51.  
  52. /****************************************************************************
  53. ** Universal Structure, used in the CopyStructure() routine.
  54. */
  55.  
  56. #define VER_UNIVERSE  1
  57. #define TAGS_UNIVERSE ((ID_SPCTAGS<<16)|ID_UNIVERSE)
  58.  
  59. struct Universe {
  60.   struct Head Head;
  61.   LONG   *Palette;
  62.   WORD   Planes;
  63.   WORD   Width;
  64.   WORD   Height;
  65.   WORD   InsideWidth;
  66.   WORD   InsideByteWidth;
  67.   WORD   InsideHeight;
  68.   struct DPKTask *Task;
  69.   LONG   Frequency;
  70.   LONG   AmtColours;
  71.   WORD   ScrMode;
  72.   WORD   BmpType;
  73.   APTR   Source;
  74.   struct JoyData *JoyData;
  75.   struct Raster  *Raster;
  76.   WORD   XOffset;
  77.   WORD   YOffset;
  78.   WORD   InsideYOffset;
  79.   WORD   InsideXOffset;
  80.   WORD   Channel;
  81.   WORD   Priority;
  82.   LONG   Length;
  83.   WORD   Octave;
  84.   WORD   Volume;
  85.   LONG   BmpFlags;
  86.   BYTE   *Name;
  87.   WORD   Gutter;
  88.   WORD   Colour;
  89.   WORD   Point;
  90. };
  91.  
  92. #endif /* SYSTEM_MISC_H */
  93.